* {
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
}

body{
    height: 100%;
    background: url(../images/f1_1.jpg) no-repeat center 0;
    /* 缩放背景图 */
    background-size: cover;
}

.cloud img{
    position: absolute;
    left: 50%;
    top: 0;
}

.cloud img:nth-child(1){
    margin-left: -300px;
    top: 20px;
    animation: cloud 1s infinite alternate;
}

.cloud img:nth-child(2){
    margin-left: 400px;
    top: 100px;
    animation: cloud 1s infinite alternate 0.2s;
}

.cloud img:nth-child(3){
    margin-left: -550px;
    top: 200px;
    animation: cloud 1s infinite alternate 0.4s;
}

/* 云彩动画 */
@keyframes cloud {
    to{
        transform: translateX(20px);
    }
}

/* 热气球效果 */
.san img{
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -330px;
    top: 50px;
    animation: san 1s infinite alternate ;
}

@keyframes san {
    to{
        transform: translateY(20px);
    }
}




/* 字和长颈鹿 */
.no img{
    position: absolute;
    left: 50%;
    top: 0;
}

.no img:nth-child(1){
    margin-left: -300px;
    top: 200px;
}
.no img:nth-child(2){
    margin-left: 200px;
    top: 20px;
}

/* 最下面四个跳动效果 */
.pint img{
    position: absolute;
    left: 50%;
    top: 0;
}

.pint img:nth-child(1){
    margin-left: -400px;
    top: 500px;
    animation: pint 1s alternate infinite ;
}

.pint img:nth-child(2){
    margin-left: -160px;
    top: 500px;
    animation: pint 1s alternate infinite 0.2s;
}

.pint img:nth-child(3){
    margin-left: 100px;
    top: 500px;
    animation: pint 1s alternate infinite 0.4s;
}

.pint img:nth-child(4){
    margin-left: 300px;
    top: 500px;
    animation: pint 1s alternate infinite 0.6s;
}

@keyframes pint {
    to{
        transform: translateY(40px);
    }
}